import { makeAutoObservable } from 'mobx'
import { http } from '@/utils'
class ChannelStore{
    channelList=[]
     constructor(){
        makeAutoObservable(this)
     }
     loadChannelList=async ()=>{
        
        const res=await http.get('/channels')
       console.log(res,'ChannelStore数据')
        this.channelList = res.data.channels
      //  console.log(this.channelList)
     }
}

export {
    ChannelStore
}

